package com.ruoyi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收货计划对象 erp_receiving_plan
 * 
 * @author ruoyi
 * @date 2025-07-17
 */
public class ErpReceivingPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计划ID，主键 */
    private String id;

    /** 关联采购单管理表ID */
    private String purchaseOrderId;

    /** 计划收货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划收货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planReceiveDate;

    /** 实际收货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际收货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualReceiveDate;

    /** 收货人 */
    @Excel(name = "收货人")
    private String receiver;

    /** 计划状态（如：未执行、已完成等） */
    @Excel(name = "计划状态", readConverterExp = "如=：未执行、已完成等")
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setPurchaseOrderId(String purchaseOrderId) 
    {
        this.purchaseOrderId = purchaseOrderId;
    }

    public String getPurchaseOrderId() 
    {
        return purchaseOrderId;
    }
    public void setPlanReceiveDate(Date planReceiveDate) 
    {
        this.planReceiveDate = planReceiveDate;
    }

    public Date getPlanReceiveDate() 
    {
        return planReceiveDate;
    }
    public void setActualReceiveDate(Date actualReceiveDate) 
    {
        this.actualReceiveDate = actualReceiveDate;
    }

    public Date getActualReceiveDate() 
    {
        return actualReceiveDate;
    }
    public void setReceiver(String receiver) 
    {
        this.receiver = receiver;
    }

    public String getReceiver() 
    {
        return receiver;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("purchaseOrderId", getPurchaseOrderId())
            .append("planReceiveDate", getPlanReceiveDate())
            .append("actualReceiveDate", getActualReceiveDate())
            .append("receiver", getReceiver())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
